package com.findlocation.persistence.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.findlocation.persistence.tech.dao.ObjetIdentifiable;


@Entity
@Table(name = "Apartement")
public class Apartement extends ObjetIdentifiable<Long> implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID")
	private Long id;
	
	@ManyToOne
	@JoinColumn(name="ID", unique=true, nullable=false)
	private User propietaire;

	@Column(name = "App_surface")
	private Float surface;
	@Column(name = "App_codepostale")
	private String codepostale;
	@Column(name = "App_ville")
	private String ville;
	@Column(name = "App_numeroVoie")
	private Integer numeroVoie;
	@Column(name = "App_numrue")
	private String numrue;
	@Column(name = "App_telcontact")
	private String telcontact;
	@Column(name = "App_mailcontact")
	private String mailcontact;
	@Column(name = "App_piece")
	private Integer piece;
	@Column(name = "App_etage")
	private Integer etage;
	@Column(name = "App_ascenseur")
	private Byte ascenseur;
	@Column(name = "App_terrasse")
	private Byte terrasse;
	@Column(name = "App_parking")
	private Byte parking;

	public Apartement() {
	}

	
	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}
	
	public User getPropietaire() {
		return propietaire;
	}

	public void setPropietaire(User propietaire) {
		this.propietaire = propietaire;
	}

	public Float getSurface() {
		return this.surface;
	}

	public void setSurface(Float surface) {
		this.surface = surface;
	}

	public String getCodepostale() {
		return this.codepostale;
	}

	public void setCodepostale(String codepostale) {
		this.codepostale = codepostale;
	}

	public String getVille() {
		return this.ville;
	}

	public void setVille(String ville) {
		this.ville = ville;
	}

	public Integer getNumerovoie() {
		return this.numeroVoie;
	}

	public void setNumerovoie(Integer numerovoie) {
		this.numeroVoie = numerovoie;
	}

	public String getNumrue() {
		return this.numrue;
	}

	public void setNumrue(String numrue) {
		this.numrue = numrue;
	}

	public String getTelcontact() {
		return this.telcontact;
	}

	public void setTelcontact(String telcontact) {
		this.telcontact = telcontact;
	}

	public String getMailcontact() {
		return this.mailcontact;
	}

	public void setMailcontact(String mailcontact) {
		this.mailcontact = mailcontact;
	}

	public Integer getPiece() {
		return this.piece;
	}

	public void setPiece(Integer piece) {
		this.piece = piece;
	}

	public Integer getEtage() {
		return this.etage;
	}

	public void setEtage(Integer etage) {
		this.etage = etage;
	}

	public Byte getAscenseur() {
		return this.ascenseur;
	}

	public void setAscenseur(Byte ascenseur) {
		this.ascenseur = ascenseur;
	}

	public Byte getTerrasse() {
		return this.terrasse;
	}

	public void setTerrasse(Byte terrasse) {
		this.terrasse = terrasse;
	}

	public Byte getParking() {
		return this.parking;
	}

	public void setParking(Byte parking) {
		this.parking = parking;
	}

}
